package 设计模式.创建型模式.demo04原型模式.demo1自行实现;

/**
 * @author: 王富贵
 * @description: 主启动类
 * @createTime: 2022/11/07 15:55
 */
public class Application {
    public static void main(String[] args) {
        Dog dog = new Dog("大黄","香蕉");
        System.out.println(dog.toString());
        Dog cloneDog = (Dog) dog.clone();
        System.out.println(cloneDog.toString());
        System.out.println(dog == cloneDog);
    }
}
